﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using DG.Tweening;

static class DOTweenExtend
{

    public static Tweener DOVerticalNormalizedPos(this ScrollRectCopy scroll, float value, float duration, bool snapping = false)
    {
        return DOTween.To(() => scroll.normalizedPosition, y => scroll.normalizedPosition = y, new Vector2(0, value), duration).SetTarget(scroll);
    }
}
